package com.itsccn.quartzdemo.Job;

import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class HelloJob implements Job {
	 public static final String FAVORITE_COLOR = "favorite color";  
	    public static final String EXECUTION_COUNT = "count";  
	    // 因为quartz每次执行任务时都会重新实例化一个类，所以非静态成员变量不能用来维护状态  
	    private int _counter = 1;  
	@Override
	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		Logger log = Logger.getLogger(getClass());
		log.info("我被执行了！！！"+System.currentTimeMillis());
	}

}
